﻿using System;

[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
sealed class MyVersionAttribute : Attribute
{
    public string VersionName { get; private set; }
    public string Comment { get; private set; }

    public MyVersionAttribute(string versionName)
        : this(versionName, "") { }

    public MyVersionAttribute(string versionName, string comment)
    {
        this.VersionName = versionName;
        this.Comment = comment;
    }
}